package cn.sumpu.app.guoguojie.dao;

import java.util.List;
import java.util.Map;

import cn.sumpu.app.guoguojie.domain.Discuss;
import cn.sumpu.app.guoguojie.domain.DiscussTag;
import cn.sumpu.app.guoguojie.domain.DiscussTagDis;
import cn.sumpu.app.guoguojie.exception.AppBusinessException;

public interface DiscussDao {

    public void insertDiscuss(Discuss discuss) throws AppBusinessException;
    
    public void updateDiscuss(Discuss discuss) throws AppBusinessException;
    
    public int getDiscussCount(Map<String, Object> map) throws AppBusinessException;
    
    public List<Discuss> getDiscussList(Map<String, Object> map) throws AppBusinessException;
    
    public Discuss getDiscuss(Map<String, Object> map) throws AppBusinessException;
    
    public void insertDiscussTag(DiscussTag discussTag) throws AppBusinessException;
    
    public void insertDiscussTagDis(DiscussTagDis discussTagDis) throws AppBusinessException;
    
    public List<DiscussTag> getTagByCid(Map<String, Object> map) throws AppBusinessException;
    
    public void deleteDiscussTagById(Map<String, Object> map) throws AppBusinessException;
    
    public List<DiscussTagDis> getDTSList(Map<String, Object> map) throws AppBusinessException;
    
    public void deleteDis(Map<String, Object> map) throws AppBusinessException;
    
    public void deleteDTSById(Map<String, Object> map) throws AppBusinessException;
    
    //查询话题
    List<Discuss> getDiscussBruce(Map<String, Object> map) throws AppBusinessException;
    
    //修改量值
    void updateDiscussAdd(Discuss discuss) throws AppBusinessException;
    
}
